<?php 

$category_url = url_for2('category', array('category' => $category->getId()));
$forum_url = url_for('forum/categories');

echo <<<HTML
<a href="{$forum_url}">Forum</a> >>
<a href="{$category_url}">{$category->getName()}</a><br /><br /> 
HTML;
?>

<table class="categories">
	<tr class="category">
		<td><?php echo $category->getName(); ?></td>
	</tr>
	
<?php 
if ($subcategories->count() == 0)
{
	echo "<p>Aucune sous-categorie</p>";
}
else
{
	foreach ($subcategories as $subcategory)
	{
		$subcategory_url = url_for2('subcategory', array('subcategory' => $subcategory->getId(), 'page' => 1));
		 
		echo <<<HTML
		<tr class="subcategory">
			<td>
				<a href="{$subcategory_url}">{$subcategory->getName()}</a>
			</td>
		</tr>
HTML;
	}
}
?>
</table>